The Week View component > FWeekView.setCellData()

 

FWeekView.setCellData()

Availability

Flash Player 6.

Usage

myWeekView_wkv.setCellData (data, date)

Parameters

data The data to be associated with the specified Date object.

date A Date object which represents the date that the data will be associated with.

Returns

Nothing

Description

This methods stores and associates the data passed in with the specified Date object. If data passed in is an array it will replace any and all data associated with the date. Otherwise the data will be appended to the associated data.

 

Example

The following code set the selected date to the current date, which then triggers the change handler to be called.

function onWeekChange(view)
{
	trace( "Selected Date: " + view.getSelectedDate() ); //will trace today's date
}

var dateObj = new Date( ); //today's date

myWeekView_wkv.setChangeHandler( "onWeekChange" );
myWeekView_wkv.setSelectedDate( dateObj );

 

See also

FWeekView.getSelectedDate()